package com.carAnalysisAdmin.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.carAnalysisAdmin.system.mapper.SysCarParkMapper;
import com.carAnalysisAdmin.system.domain.SysCarPark;
import com.carAnalysisAdmin.system.service.ISysCarParkService;

/**
 * 停车场Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-13
 */
@Service
public class SysCarParkServiceImpl implements ISysCarParkService 
{
    @Autowired
    private SysCarParkMapper sysCarParkMapper;

    /**
     * 查询停车场
     * 
     * @param id 停车场主键
     * @return 停车场
     */
    @Override
    public SysCarPark selectSysCarParkById(Long id)
    {
        return sysCarParkMapper.selectSysCarParkById(id);
    }

    /**
     * 查询停车场列表
     * 
     * @param sysCarPark 停车场
     * @return 停车场
     */
    @Override
    public List<SysCarPark> selectSysCarParkList(SysCarPark sysCarPark)
    {
        return sysCarParkMapper.selectSysCarParkList(sysCarPark);
    }

    /**
     * 新增停车场
     * 
     * @param sysCarPark 停车场
     * @return 结果
     */
    @Override
    public int insertSysCarPark(SysCarPark sysCarPark)
    {
        return sysCarParkMapper.insertSysCarPark(sysCarPark);
    }

    /**
     * 修改停车场
     * 
     * @param sysCarPark 停车场
     * @return 结果
     */
    @Override
    public int updateSysCarPark(SysCarPark sysCarPark)
    {
        return sysCarParkMapper.updateSysCarPark(sysCarPark);
    }

    /**
     * 批量删除停车场
     * 
     * @param ids 需要删除的停车场主键
     * @return 结果
     */
    @Override
    public int deleteSysCarParkByIds(Long[] ids)
    {
        return sysCarParkMapper.deleteSysCarParkByIds(ids);
    }

    /**
     * 删除停车场信息
     * 
     * @param id 停车场主键
     * @return 结果
     */
    @Override
    public int deleteSysCarParkById(Long id)
    {
        return sysCarParkMapper.deleteSysCarParkById(id);
    }
}
